package com.example.controller;

import com.example.annotation.Permission;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: zhugelongchen
 * @description:
 * @author: 诸葛龙辰
 * @create: 2022-11-13 19:56
 **/
@RestController
@RequestMapping("/user")

public class UserController {
    @RequestMapping("/list")
    @Permission("list")
    public String list(){
        System.out.println("查询所有用户");
        return "list";
    }


    @PostMapping("/save")
    @Permission("save")
    public String save(){
        System.out.println("添加用户");
        return "save";
    }

}
